 <div class="row">
                <div class="col-lg-12">
                    <h3 class="page-header text-success">Thêm mới sản phẩm <a  href="<?php echo base_url()?>backend/product/list_product/" class="btn btn-danger pull-right">Quay lại</a></h3>
                    
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                      <div class="panel-heading">
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                       
                        <form class="form-horizontal" method="post"  name="frmadd" id="frmadd" action="<?php echo base_url()?>backend/product/add_product/"  data-toggle="validator" role="form">
                        <?php
						  echo "<div class='mess_error'>";
						  echo "<ul style='list-style:none'>";
							  if(validation_errors() != ''){
								  echo "<li>".validation_errors('<h5 class=" error text-center login-title" style="color:#F00">','</h5>')."</li>";
							  }
						  echo "</ul>";
						  echo "<ul style='list-style:none'>";
							  if(isset($error)){
								  echo $error;
							  }
						  echo "</ul>";
						  echo "</div>";
					    ?>
                            <fieldset>
                              
                              <div class="form-group">
                                <label class="col-sm-3 control-label" for="sanpham_tieude" >Tên sản phẩm</label>
                                <div class="col-sm-9">
                                  <input type="email" class="form-control" name="sanpham_tieude" id="sanpham_tieude" placeholder="Tên sản phẩm" required autofocus>
                                </div>
                              </div>
                              <div class="form-group">
                                <label class="col-sm-3 control-label" for="sanpham_giaban" >Giá bán</label>
                                <div class="col-sm-9">
                                  <input type="text" class="form-control" name="sanpham_giaban" id="sanpham_giaban" placeholder="Giá bán">
                                </div>
                              </div>
                              
                             
                             
                                 	<div class="form-group">
                                        <label class="col-sm-3 control-label" for="taikhoan_type">Nhóm thành viên</label>
                                        <div class="col-sm-9">
                                          <div class="row">
                                            <div class="col-xs-6">
                                              <select class="form-control col-sm-6" name="taikhoan_type" id="taikhoan_type">
                                                <?php  
													$danhmuc=$this->db->query('SELECT * FROM tbdanhmuc')->result_array();
													foreach($danhmuc as $item)
													{
													?>
													   <option value="<?php echo $item['danhmuc_id'];  ?>"><?php echo $item['danhmuc_tieude'];  ?></option>
													<?php 
													}
												 ?>
                                             
                                              </select>
                                            
                                            </div>
                                            
                                          </div>
                                        </div>
                                      </div>
                            
                              
                              
                              <div class="form-group">
                                <label class="col-sm-3 control-label" for="taikhoan_trangthai">Trạng thái</label>
                                <div class="col-sm-9">
                                  <div class="row">
                                    <div class="col-xs-6">
                                      <select class="form-control col-sm-6" name="taikhoan_trangthai" id="taikhoan_trangthai">
                                        <option value="0">Chưa kích hoạt</option>
                                        <option value="1">Khoá</option>
                                        <option value="2" selected>Hoạt động</option>
                                     
                                      </select>
                                    
                                    </div>
                                    
                                  </div>
                                </div>
                              </div>
                             
                              <div class="form-group">
                                <div class="col-sm-offset-3 col-sm-1">
                                  <button type="reset" name="btncancel" id="btncancel" class="btn btn-danger">Làm lại</button>
                                </div>
                                <div class=" col-sm-1">
                                  <button type="submit" name="btnadd" id="btnadd" class="btn btn-success">Thêm mới</button>
                                </div>
                              </div>
                            </fieldset>
                          </form>
                            
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
